<?php
$data = array();
$sec_id = $_GET['sec_id'];
$stu_id = $_GET['stu_id'];

$insert = array(
	sec_id => $sec_id,
	student_id => $stu_id
);

if($dbfunc->insert("tb_reg",$insert)){
	$data['success'] = true;
}
else{
	$data['success'] = false;
}
echo json_encode($data);